from flask import Flask, Blueprint

from applications.view.api.dict import bp as dict_bp
from applications.view.api.store_api import bp as store_bp

# 创建sys
api_bp = Blueprint('api', __name__, url_prefix='/api')


def register_api_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    api_bp.register_blueprint(dict_bp)
    api_bp.register_blueprint(store_bp)

    app.register_blueprint(api_bp)
